package com.finer.service;

import com.finer.entity.buy.BuyCompareSupplierPrice;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * 采购比价与供应报价关联表(BuyCompareSupplierPrice)表服务接口
 *
 * @author makejava
 * @since 2024-10-21 10:20:36
 */
public interface BuyCompareSupplierPriceService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    BuyCompareSupplierPrice queryById(Integer id);

    /**
     * 分页查询
     *
     * @param buyCompareSupplierPrice 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<BuyCompareSupplierPrice> queryByPage(BuyCompareSupplierPrice buyCompareSupplierPrice, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param buyCompareSupplierPrice 实例对象
     * @return 实例对象
     */
    BuyCompareSupplierPrice insert(BuyCompareSupplierPrice buyCompareSupplierPrice);

    /**
     * 修改数据
     *
     * @param buyCompareSupplierPrice 实例对象
     * @return 实例对象
     */
    BuyCompareSupplierPrice update(BuyCompareSupplierPrice buyCompareSupplierPrice);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

}
